/***************************************************************************
 * CR_Slink -- Copyright Bit Armory Labs 2007
 *
 * FILE:     SlinkOptions.cs, 47 code lines, [969 Bytes]
 * DATE:     8/31/2007 2:13 PM
 * MODIFIED: 8/31/2007 4:21 PM
 * PATH:     C:\Programming\Projects\Slink\CR_Slink
 *
 * NAMESPACE: CR_Slink
 * CLASS:     SlinkOptions
 *
 * AUTHOR:   Brian Chavez (Cowboy), bchavez@bitarmory.com
 *
 *                        Licence
 *
 * This library, code generator, and source code
 * is licensed under the terms and conditions defined in the GNU Public
 * License. You are free to use it for non-commercial purposes.
 * If you are going to use any part of it in a commercial 
 * application, contact me and we can work something out.
 * You may use the code generated output of Slink and Slink
 * as a development tool in both commercial and 
 * non-commercial applications.
 *
 * THE SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS", WITHOUT WARRANTY
 * OF ANY KIND, EXPRESS OR IMPLIED. IN NO EVENT SHALL THE AUTHOR BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OF THIS
 * SOFTWARE.
 ***************************************************************************/

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.CodeRush.Core;
using System.Diagnostics;

namespace CR_Slink
{
    [UserLevel(UserLevel.NewUser)]
    public partial class SlinkPlugInWindow : OptionsPage
    {

        public SlinkPlugInWindow()
        {
            base.Initialize();
            InitializeComponent();
        }

        public override string Category
        {
            get
            {
                return SlinkPlugInWindow.GetCategory();
            }
        }

        public override string PageName
        {
            get
            {
                return SlinkPlugInWindow.GetPageName();
            }
        }

        /// <summary>
        /// Get category
        /// </summary>
        /// <returns>String</returns>
        public static string GetCategory()
        {
            return @"Slink";
        }
        /// <summary>
        /// Get page name
        /// </summary>
        /// <returns>String</returns>
        public static string GetPageName()
        {
            return @"Options";
        }

        private void pictureBox1_Click( object sender, EventArgs e )
        {
            Process.Start( "http://www.bitarmory.com" );
        }

        private void SlinkOptions_Load( object sender, EventArgs e )
        {
            this.radBuildOnTheFly.Checked = SlinkPlugInSettings.UseFileSystemWatchers;
            this.radBuildOnDemand.Checked = !this.radBuildOnTheFly.Checked;
        }

        private void label2_Click( object sender, EventArgs e )
        {

        }

        private void linkLabel1_LinkClicked( object sender, LinkLabelLinkClickedEventArgs e )
        {
            Process.Start( "http://bchavez.bitarmory.com" );
        }

        private void radioButton2_CheckedChanged( object sender, EventArgs e )
        {

        }

        private void radioButton1_CheckedChanged( object sender, EventArgs e )
        {

        }

        private void SlinkOptions_CommitChanges( object sender, OptionsPageStorageEventArgs ea )
        {
            SlinkPlugInSettings.UseFileSystemWatchers = this.radBuildOnTheFly.Checked;
        }

        private void label3_Click( object sender, EventArgs e )
        {

        }

        

        
    }
}
